﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace DTcms.Web.MVC
{
    public class RouteConfig
    {
        /// <summary>
        /// 路由配置
        /// </summary>
        /// <param name="routes"></param>
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}",
                defaults: new { controller = "Index", action = "Index" },
                namespaces: new[] { "DTcms.Web.MVC.Areas.Admin.Controllers" }
            );
        }
    }
}